<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 
<jsp:include page="template-top.jsp"/>
<form name="add" action="add-bookmark.do" method="get">
<input type="submit" name="button" value="Add a bookmark"/>
</form>

<table>
<c:forEach var="b" items="${bookmarks}">
  <tr><td colspan="2">
        <a target="_blank" href="${b.url}">${b.name}</a>
        <form name="deletebookmark" action="delete-bookmark.do" method="post">
            <input type="hidden" name="idString" value="${b.id}"/>
            <input type="submit" name="button" value="X"/>
        </form>
      </td></tr>
  <tr><td>&nbsp;&nbsp;&nbsp;</td>
      <td class="comment">${b.comment}
          <form name="changecomment" action="edit-bookmark.do" method="post">
              <input type="hidden" name="idString" value="${b.id}"/>
              <input type="submit" name="button" value="Edit"/>
          </form>
      </td></tr>
  <tr><td>&nbsp;</td></tr>
</c:forEach>
</table>
<jsp:include page="template-bottom.jsp"/>
